;
(function () {
  'use strict';
  angular.module('controllers.userBehaviorAnalysis.userChurnAnalysis')
    .controller('dUserChurnAnalysisCtrl', dUserChurnAnalysisCtrl);

  function dUserChurnAnalysisCtrl($scope, dUserChurnAnalysisService, CoreService, $rootScope, $mdDialog, COREDATA) {
    $scope.dUserChurnAnalysis = dUserChurnAnalysisService;
    dUserChurnAnalysisService.selectBL_Provinces();   //初始化页面下拉框数据
    $scope.exportUrl = COREDATA.FORMPREFIX + 'analysisUserBehavior/userChurnRate/churnNumExport';
    $scope.$on('$stateChangeSuccess', function (evt, state) {
      dUserChurnAnalysisService.reset();
      $mdDialog.hide();
    });
  }

  dUserChurnAnalysisCtrl.$inject = ['$scope', 'dUserChurnAnalysisService', 'CoreService', '$rootScope', '$mdDialog', 'COREDATA'];
})();